<?php
	
class Table_Nationalites extends Zend_Db_Table_Abstract
{
    protected $_name    = 'nationalite';
    protected $_primary = 'NATIONALITE_NUMERO';
    protected $_sequence = true; //la table a un autoincrément
    
    public function getNationalite($id) {
		return $this-> fetchRow($this
			->select()
			->from($this, array('*'))
			->where('nationalite_numero = ?', $id)
			);
	}
	
  	public function getAllNationalites() {
  		return $this -> fetchAll($this -> select());
	}
}
?>